function [ res ] = maxCorrelation( Ms, numUsers )

res = -1;
for i = 1 : numUsers - 1
    for j = i + 1 : numUsers
        tmp = abs(  sum( Ms(i,:) .* Ms(j,:) )  );
        if  tmp > res
            res = tmp;
        end
    end
end

end
